//
//  IDSViewController.m
//  SubView
//
//  Created by iD Student on 7/10/13.
//  Copyright (c) 2013 iD Student. All rights reserved.
//

#import "IDSViewController.h"

@interface IDSViewController ()

@end

@implementation IDSViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
    newImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"IMG0.png"]];
    [self.view addSubview:newImageView];
} 

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


- (void)dealloc {
    [newImageView release];
    [blahButton release];
    [otherButton release];
    [super dealloc];
}
- (IBAction)buttonPush:(id)sender 
{
    [newImageView removeFromSuperview];

    }


- (IBAction)showButtonPush:(id)sender {
    
    [self.view addSubview:newImageView];
}
@end

